class Date {
	private int year;
	private int mon;
	private int day;
	public Date(int year,int mon,int day){
		this.year=year;
		this.mon=mon;
		this.day=day;
	}
	 public Date(){
	 }
	public int getYear(){
		return year;
	}
	public void setYear(int year){
		this.year=year;
	}
	public int getMon(){
		return mon;
	}
	public void setMon(int mon){
		this.mon=mon;
	}
	public int gettDay(){
		return day;
	}
	public void setDay(int day){
		this.day=day;
	}
	 public String toString(){
		 return year+"-"+mon+"-"+day;
	 }
}
	 
